package com.nlp.server.strategy;

import com.nlp.server.pojo.dto.ChatDTO;
import com.nlp.server.service.ChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

/**
 * 文本查询
 * @author shiliuyinzhen
 */
@Component
public class TextQuery implements ChatQuery{

    @Autowired
    private ChatService chatService;

    /**
     * 文本查询
     * @param chatDTO
     * @param sseEmitter
     */
    @Override
    public void query(ChatDTO chatDTO, SseEmitter sseEmitter) {
        chatService.query(chatDTO,sseEmitter);
    }
}
